<?php

namespace App\Http\Service;

use App\Libs\HttpCurlLibrary;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Log;
use App\Models\Platforms;

//补贴比例
class PlatformsService extends BaseService
{
   
    public function __construct(Platforms $platforms)
    {
        parent::__construct();
        $this->platforms=$platforms;
    }

    public  function getList()
    {
        $list=$this->platforms->select()->get()->toArray();
        $data=[];
        foreach ($list as $k => $v) {
            $bb=$v['reserve_rate']/100;
            $v['reserve_rate']=1-$bb;
            $data[$v['platform_name']]=$v;
        }
        //dd($data);
        return $data;
    }
    

}
